<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>详情</title>
<link rel="stylesheet" type="text/css" href="css/lib/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/doumee.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/dialog.css"/>
<link rel="stylesheet" type="text/css" href="css/public.css"/>
<link rel="stylesheet" type="text/css" href="css/order.css"/>
<link rel="stylesheet" type="text/css" href="css/caseMod.css"/>
<script src="js/lib/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/vue-2.5.17.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/doumee.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/dialog.js" type="text/javascript" charset="utf-8"></script>
<script src="js/data.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>

<header class="header">
	<a class="left_icon back_btn"></a>
	<h4 class="title">详情</h4>
</header>

<footer class="footer">
	<button class="max-btn" type="button">确认核销</button>
</footer>

<div class="swiper-container Main" id="Main">
	<div class="swiper-wrapper">
		<div class="swiper-slide content">
			
			<div class="children" id="shopCar">
				
				<div class="wealMod homeMod" id="weal" style="padding-top: 14px;">
				
					<div class="weal-wrap">
						
						<ul class="weal-box" v-for="(item,index) in wealData" v-if="index==0" type="0">
							<li class="main-info flex-row">
								<div class="val">
									<span class="unit">￥</span>{{item.val}}
								</div>
								<div class="flex-full info flex-row">
									<dl class="flex-full">
										<dt>{{item.type}}</dt>
										<dd>{{item.start}} ~ {{item.end}}</dd>
									</dl>
									<!--<div class="btn">已核销</div>-->
								</div>
							</li>
							<li class="ex-info flex-row" @click="controlRuler($event)">
								<div class="flex-full ruler animate dm-wrap">{{item.rule}}</div>
								<a class="btn animate"></a>
							</li>
						</ul>
						
					</div>
					
				</div>
				
			</div>
			
		</div>
	</div>
</div>

<script type="text/javascript">

var vm = new Vue({
	el:'#Main',
	data:{
		wealData:data.weal,
	},
	methods:{
		//收放优惠券详情
		controlRuler:function(e){
			var node = e.currentTarget.children;
			if(node[1].className.indexOf('active') < 0){
				//展开
				node[0].className = 'flex-full ruler animate';
				node[1].className = 'btn animate active';
			}else{
				//收起
				node[0].className = 'flex-full ruler animate dm-wrap';
				node[1].className = 'btn animate';
			};
		},
	},
	mounted:function(){
		pullSwiper('#Main');
	},
});
	
</script>

</body>
</html>
